package com.lwm.mybatis.custom.cfg;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 自定义Mybatis配置类
 *
 * @author liweimin
 * @date 2021/6/15 17:24
 * @since
 */
@Data
public class Configuration {
    private String url;
    private String driver;
    private String username;
    private String password;
    private Map<String, Mapper> mappers = new HashMap<>();

    public void setMappers(Map<String, Mapper> mappers) {
        this.mappers.putAll(mappers);
    }
}
